package com.myapp.struts.menu;

import java.util.ArrayList;

public class USAllDayText {

    private static USAllDayText usAllDayTextObj;
    ArrayList<FoodItems> usAllDayTextArray = new ArrayList<FoodItems>();

    public static synchronized USAllDayText getSingletonObject() {
        if (usAllDayTextObj == null) {
            usAllDayTextObj = new USAllDayText();
        }
        return usAllDayTextObj;
    }

    public Object clone() throws CloneNotSupportedException {
        throw new CloneNotSupportedException();
    }

    public String getUSAllDayText(String fileLoc) {
        String fileName = "";
        MenuRead menuReadObj = new MenuRead();
        usAllDayTextArray = menuReadObj.ReadMenu(Constants.US);
        
        MenuGenerate menuGenerateObj = new MenuGenerate();
        usAllDayTextArray = menuGenerateObj.GenerateMenu(usAllDayTextArray, "ALLDAY");

        MenuFormat menuFormatObj = new MenuFormat();
        fileName = menuFormatObj.FormatMenu(usAllDayTextArray, Constants.TEXT, fileLoc);
        return fileName;

    }
}
